package com.app.mapper;

import com.app.model.VillageFoodModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface VillageFoodMapper extends BaseMapper<VillageFoodModel> {
    List<VillageFoodModel> getFoodList(Integer page, Integer limit, String keyword, Integer type, Integer township);

    List<VillageFoodModel> selectFoodList(Integer page, Integer limit, String keyword, Integer type,Integer township);

    int getFoodCount(String keyword, Integer type);

    int selectFoodCount(String keyword, Integer type);

}
